package co.yixiang.monitor;

import de.codecentric.boot.admin.server.config.AdminServerNotifierAutoConfiguration;
import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * 监控中心
 *
 * @author yshop
 */
@EnableAdminServer
@SpringCloudApplication
@ComponentScan(
        excludeFilters= {@ComponentScan.Filter(type= FilterType.ASSIGNABLE_TYPE,
                classes= {AdminServerNotifierAutoConfiguration.NotifierTriggerConfiguration.class, AdminServerNotifierAutoConfiguration.CompositeNotifierConfiguration.class})})
public class YshopMonitorApplication {

    public static void main(String[] args) {
        SpringApplication.run(YshopMonitorApplication.class, args);
        System.out.println(
                "              __                  \n" +
                        "  __ __ ___  / /  ___   ___       \n" +
                        " / // /(_-< / _ \\/ _ \\ / _ \\   \n" +
                        " \\_, //___//_//_/\\___// .__/    \n" +
                        "/___/                /_/          \n "+

                        "\n意象yshop电商系统监控中心启动成功 \n官网：https://www.yixiang.co 提供技术支持ﾞ  \n");
    }
}
